unit Form_Main;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,Class_Demo,Helpr_Demo;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
  public
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
  DemoA:TDemo;
begin
  DemoA:=TDemo.Create;
  DemoA.DemoName:='DemoName';
  Showmessage(DemoA.GetDemoName);
  //should use class helper
  Showmessage(DemoA.GetDemoCode);
end;

end.
